Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632712 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/08 - Number Counter

font/ cody/swapnilsparsh/30DaysOfJavaScript/08 - Number Counter/font/
1 Items
  • sans.ttf
  • assets/ cody/swapnilsparsh/30DaysOfJavaScript/08 - Number Counter/assets/
    1 Items
  • number.png
  • style.css cody/swapnilsparsh/30DaysOfJavaScript/08 - Number Counter/style.css
    95 Views
    0 Comments
    :root {
    --primary-color: #19172e;
    --counter-container-size: 9.375rem;
    --container-width: 100%;
    --btn-operator-size: 2.5rem;
    }

    @font-face {
    index.html cody/swapnilsparsh/30DaysOfJavaScript/08 - Number Counter/index.html
    292 Views
    0 Comments
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style.css">
    <link rel="shortcut icon" href="assets/number.png" type="image/x-icon">
    script.js cody/swapnilsparsh/30DaysOfJavaScript/08 - Number Counter/script.js
    161 Views
    0 Comments
    const counter = document.getElementById('counter');
    const increase = document.querySelector('.increase');
    const decrease = document.querySelector('.decrease');
    const reset = document.querySelector('.btn-reset');
    const save = document.querySelector('.btn-save');

    let count = 0;
    increase.addEventListener('click', () => {